export function randomNum(minNum,maxNum){ 
  let x = 0
  switch(arguments.length){ 
  case 1: 
    x =  parseInt(Math.random()*minNum+1,10)
    break 
  case 2: 
    x =  parseInt(Math.random()*(maxNum-minNum+1)+minNum,10)
    break
  default: 
    x =  0
    break 
  } 
  return x
} 